require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
  s.name         = package['name']
  s.version      = package['version']
  s.summary      = package['description']
  s.license      = package['license']

  s.authors      = package['author']
  s.homepage     = package['homepage']
  s.platforms    = { :ios => "9.0", :osx => "10.13" }

  s.source       = { :git => "https://gitee.com/fujm/react-native-voice-assistant.git", :tag => "v#{s.version}" }
  s.source_files  = "ios/**/*.{h,m}"
  s.exclude_files = 'ios/AIUI/lib'
  s.resources = 'ios/**/*.bundle', 'ios/**/*.xib', 'ios/AIUI/resource/**/*.*'
  s.vendored_frameworks = 'ios/**/*.framework'
  s.vendored_libraries = 'ios/**/*.a'
  s.static_framework = true

  s.dependency 'React-Core'
  s.dependency 'YYCategories'
  s.dependency 'YYModel'
  s.dependency 'YYWebImage'
  s.dependency 'YYAsyncLayer'
  s.dependency 'YYText'
end
